#ifndef JOININFOPACKET_H
#define JOININFOPACKET_H

#include "AbstractPacket.h"
#include "core/Node.h"

class JoinInfoPacket : public AbstractPacket
{
public:
    JoinInfoPacket(const Node &joinNode, const Node &prevJoinNode);
    virtual ~JoinInfoPacket();
    Node * getJoinNode() { return joinNode; }
    Node * getPrevJoinNode() { return prevJoinNode; }

    virtual PacketType getPacketType() const;
private:
    Node *joinNode;
    Node *prevJoinNode;
};

#endif // JOININFOPACKET_H
